/*
 * @Company: TSBVN
 * @Author: marcusbui
 * @Revision: May 13, 2011
 */
package tsb.com.html5.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import tsb.com.html5.base.BaseService;
import tsb.com.html5.user.dao.IUserInfoDao;
import tsb.com.html5.user.item.UserItem;
import tsb.com.html5.user.param.GetUserParam;

/**
 * The Class UserService.
 */
public class UserService extends BaseService implements IUserService {
	
	@Autowired
	private IUserInfoDao userInfoDao;

	public List<UserItem> selectUserInfo(GetUserParam parm) throws Exception {
		try{
			GetUserParam userParm = (GetUserParam) parm;
			List<UserItem> userList = (List<UserItem>) userInfoDao.selectUserInfo(userParm);
			System.out.println("Done");
			return userList;	
		}catch(Exception e){
			throw e;
		}
	}

	public List<UserItem> selectSessionInfo(GetUserParam parm) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}
}
